package com.source.baseData.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Feng
 * @since 2021/3/9 16:54
 */

@ApiModel(value="根据屠宰场ID获取档口数曲线图")
@Data
public class ToMarketGraphVO {

    private final List<ToMarketGraphOneMonthData> graph = new ArrayList<>();

    public void add(int month, int quantity) {
        graph.add(new ToMarketGraphOneMonthData(month, quantity));
    }
}

@ApiModel(value="根据屠宰场ID获取档口数曲线图的单月数据")
@Data
@AllArgsConstructor
class ToMarketGraphOneMonthData {

    @ApiModelProperty("月份")
    Integer month;

    @ApiModelProperty("档口数量")
    Integer quantity;
}